package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_MouldMaterial", description = "模具物料表")
@TableName(value = "Basic_MouldMaterial")
public class BasicMouldMaterial extends FBaseEntity implements Serializable {


    
    @NotNull(message="[模具id]不能为空")
    @ApiModelProperty("模具id")
    @TableField(value = "moldId")
    private Long moldId;
    
    @NotNull(message="[物料id]不能为空")
    @ApiModelProperty("物料id")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotBlank(message="[模穴数]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("模穴数")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private String qty;






}

